package matlap.client.services.school;

import java.util.List;
import matlap.shared.School;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("school")
public interface SchoolService extends RemoteService {
	int getSchoolsNumber();

	List<School> getSchools();

	List<School> selectSchoolsName();

	List<School> selectSchoolsLocality();

	List<School> getSchoolsBy(String name, String locality);

	int getSchoolId(String name);

	int getLocalityId(String name);

	public void insertSchool(String schoolName, String localityName);

	List<String> selectLocality();

	List<String> selectSchoolsNameByLocality(String localityName);
}
